#include<iostream>
#include<memory>
using namespace std;

int main()
{
  
  std::unique_ptr<int[]> arr(new int[5]);  
  std::shared_ptr<int> p1(new int(10));
  std::shared_ptr<int> p2(p1);
  cout<<p1.use_count()<<endl;
  for (int i = 0; i < 5; ++i) 
  {  
      arr[i] = i + 1;  
      std::cout << "arr[" << i << "] = " << arr[i] << std::endl;  
  }

  return 0;
}
